Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reboot-delay command line argument #418

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

amorey
Copy link
Contributor

@amorey amorey commented Aug 3, 2021

Currently, kured issues the system reboot command immediately after
kubectl drain finishes.

This is a problem for processes that need extra time to finish but aren't
running on pods and therefore aren't controlled by kubectl drain (e.g.
de-registering nodes from external load balancers).

This patch solves the problem by introducing a reboot-delay command
line argument that can be used to add a delay after kubectl drain
finishes but before the reboot command is issued.

Currently, kured issues the system reboot command immediately after
kubectl drain finishes.

This is a problem for processes that need extra time to finish but aren't
running on pods and therefore aren't controlled by kubectl drain (e.g.
de-registering nodes from external load balancers).

This patch solves the problem by introducing a `reboot-delay` command
line argument that can be used to add a delay after kubectl drain
finishes but before the reboot command is issued.
@kingdonb
Copy link
Contributor

kingdonb commented Aug 6, 2021

(I released the e2e checks that were waiting for approval.) Thanks again!

@evrardjp
Copy link
Collaborator

Thanks for splitting your PR in two! I will have a look and think of all the things good and bad about this. Eventually. (yes that's my sense of humour!)

Copy link
Collaborator

@evrardjp evrardjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine.

@dholbach dholbach added this to the 1.8.0 milestone Aug 25, 2021
@dholbach dholbach merged commit 3682eb3 into kubereboot:main Aug 25, 2021
@evrardjp
Copy link
Collaborator

I realise now it's missing documentation and changes into helm chart + manifest. Could you do a PR for that @amorey ?

@amorey
Copy link
Contributor Author

amorey commented Aug 25, 2021

No prob #430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants